<?php
$path=$_GET['path']?$_GET['path']:"./";
$arr=scandir($path);
echo "<pre>";
print_r($arr);
print_r($_SERVER);
echo "</pre>";

?>